﻿#pragma once
#ifndef WIDGET_H
#define WIDGET_H​

#include <QTableView>
#include <QStandardItemModel>

class TaskModelView : public QTableView //继承至QTableView
{
	Q_OBJECT
public:
	TaskModelView(QWidget *parent = 0);
	~TaskModelView();
	void SetModel(QStandardItemModel* taskmodel);

public slots:
	void dataChangedSlot(const QModelIndex &topLeft, const QModelIndex &bottomRight,
		const QVector<int> &roles = QVector<int>());

protected:
	QStandardItemModel* model;
};
#endif // WIDGET_H